package beans.factory;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.UUID;

import javax.sql.DataSource;

import org.springframework.jdbc.datasource.DriverManagerDataSource;

import oracle.net.aso.l;
import pojo.Person;
import service.PersonDaoManager;
import service.impl.PersonDaoManagerImpl;

public class Test {

//	public static void main(String[] args) throws SQLException {
//		Person person = new Person(UUID.randomUUID().toString(),"angers",true,10000,new Date());
//		PersonDaoManager manager = (PersonDaoManager) BeanFactory.getInstance().getBean("personDaoManager");
////		System.out.println(manager.addPerson(person));
//		
//		person.setName("sssssssssssssss");
////		System.out.println(manager.updatePerson(person));
//		List<Person>  list = manager.findAllPerson();
//		for(int i=0;i<list.size();i++)
//			System.out.println(list.get(i).toString());
//	}

}
